﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace csharpcore7_ch7_1_1IEnumerableAndIEnumerator
{

    class chapt7_1_1EnumerableAnd_IEnumerator
    {
        static void Main()
        {
            string s = "Hello";
            IEnumerator rator = s.GetEnumerator();

            while (rator.MoveNext())
            {
                char c = (char)rator.Current;
                Console.Write(c + ".");
            }
            Console.Read();
        }
    }
}
